package com.xzd.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xzd.model.Resource;
import com.xzd.vo.ResourceVo;

public interface ResourceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);
    
    List<Resource> selectResourceByCondition(@Param("userId") Long userId,
    		@Param("resourcetype") Integer resourcetype,@Param("parentResourceId") Long  parentResourceId );
    
    List<ResourceVo> selectResourceByCondition2(@Param("userId") Long userId);
    
}